/********* 请求响应工厂 *********/

export default interface ResponseFactory {
    response(data: any): any;
}
/**
 * 成功
 */
export class ResponseSuccess implements ResponseFactory {
    constructor() { }
    public response(data: any): any {
        return data;
    }
}
/**
 * 失败
 */
export class ResponseFail implements ResponseFactory {
    constructor() { }
    public response(data: any): any {
        uni.showToast({
            title: data.sMsg,
            icon: 'none',
            duration: 2500,
        });
    }
}
/**
 * 过期
 */
export class ResponseOverdue implements ResponseFactory {
    constructor() { }
    public response(data: any): any {

    }
}